package wat.ziszcommon.transport;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author P.B. & L.G. & K.K.
 */
public class Module implements Serializable {
    private String name;
    private String path;
    private List<byte[]> clazz;
    private List<String> names;
    private byte[] resource;
    
    public Module(String name, String path) {
        this.name = name;
        this.path = path;
        this.clazz = new ArrayList<byte[]>();
        this.names = new ArrayList<String>();
    }

    public String getName() {
        return name;
    }

    public String getPath() {
        return path;
    }

    public List<byte[]> getClazz() {
        return clazz;
    }

    public List<String> getClazzNames() {
        return names;
    }

    public void addClazz(String name, byte[] clazz) {
        this.clazz.add(clazz);
        this.names.add(name);
    }

    public void setResource(byte[] resource) {
        this.resource = resource;
    }

    public byte[] getResource() {
        return resource;
    }

    @Override
    public String toString() {
        return getName();
    }


}
